<?php echo $this->doctype() ?>
<html>
<head>
<title>AUTOEVALUACIÓN - CUN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
var baseUrl = "<?php echo $this->baseUrl(); ?>";
</script>
  <?php
  $this->headLink()->appendStylesheet($this->baseUrl('css/south-street/jquery-ui-1.10.4.custom.min.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('bootstrap/css/bootstrap.green.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('css/dashboard.css'));
  echo $this->headLink();
  
  $this->headScript()->appendFile($this->baseUrl('js/jquery.js'));
  $this->headScript()->appendFile($this->baseUrl('bootstrap/js/bootstrap.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/jquery-ui-1.10.4.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/cookie.js'));
  $this->headScript()->appendFile($this->baseUrl('js/jquery.popupWindow.js'));
  $this->headScript()->appendFile($this->baseUrl('dataTable/js/jquery.dataTables.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/bootstrap-growl.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/init.js'));
  echo $this->headScript();
  ?>
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
<div class="container-fluid">
<?php echo $this->layout()->content ?>
<?php
$priorityMsg = $this->priorityMessenger();
if (count( $priorityMsg ) > 0) {
    $types = array("success"=>"success", "warning"=>"warning", "error"=>"danger");
    $icons = array("success"=>"ok-sign", "warning"=>"warning-sign", "error"=>"thumbs-down");
    $titles = array("success"=>"Operación exitosa", "warning"=>"Advertencia", "error"=>"Ha ocurrido un error");
	echo '<script type="text/javascript">';
	foreach ( $priorityMsg as $label => $messages ) {
	    $type = array_key_exists($label, $types) ? $types[$label] : "info";
	    $icon = array_key_exists($label, $icons) ? $icons[$label] : "info-sign";
	    $title = array_key_exists($label, $titles) ? $titles[$label] : "Información";
	    $finalmsg = "";
		foreach ( $messages as $message ) {
		    $finalmsg .= "- ".str_replace("\n","<br/>", str_replace("'","\\'", htmlentities($message)))."<br/>";
		}
        echo "\$.growl({message:' $finalmsg', title:'$title', icon:'glyphicon glyphicon-$icon'},{type:'$type'});";
	}
	echo '</script>';
}
?>
</div>
</body>
</html>